<layout name='Layout/layout_page' />
	
	<ol class="breadcrumb">
		<li><a href="<{:U('Article/index')}>"><{:L('_menu_article')}></a></li>
      	<li><a href="<{:U('Category/index')}>"></a>Article category</li>
      	<li class="active"><{:L(_public_add)}></li>
    </ol>

	<form id="ajaxForm" action="<{:U('Category/save')}>" method="post" class="form-horizontal form-validata">

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">Father column</label>
			<div class="col-md-11">
				<select name="fid" id="fid" class="form-control">
				<option value="<{$fid}>,<{$path}>">Root column</option>
		        <volist name="list" id="vo">
		        <option value="<{$vo['id']}>,<{$vo['path']}>"><php>
		            for($i=0; $i<$vo['count']*2; $i++){
		               echo '&nbsp;&nbsp;';            
		            }
		        </php><{$vo['name']}></option>
		        </volist>
		        </select>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">Name</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="name"
				id="name"
				data-rule-required="true"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="name">Administrator</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="user"
				id="user"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">Sort</label>
			<div class="col-md-2">
				<input type="text"
                class="form-control"
				name="sort"
				id="sort"
				data-rule-required="true"
				data-rule-number="true"
				value = "1"
				/>
				<p>The smaller the number, the more forward</p>
			</div>
		</div>
	
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info"><{:L(_public_add)}></button>
			</div>
		</div>
	</form>

<script type="text/javascript">
$("#fid").val("<{$fid}>,<{$path}>");
</script>


<input type="hidden" id="menu_action" value="article" />